<?php


namespace App\HttpController;


use App\Routes\DocRoute;
use App\Routes\Mp1Route;
use App\Routes\Mp2Route;
use EasySwoole\Http\AbstractInterface\AbstractRouter;
use EasySwoole\Http\Request;
use EasySwoole\Http\Response;
use FastRoute\RouteCollector;
use Lib\PhpDocHlp\PhpDoc;

class Router extends AbstractRouter
{

    function initialize(RouteCollector $route)
    {
        $this->setGlobalMode(true);
        foreach ([
            Mp1Route::class,
            Mp2Route::class
         ] as $_route) {
            $_route::handle($route);
        }
    }
}
